package com.yonyou.sto.modules.ims.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yonyou.sto.common.api.CommonResult;
import com.yonyou.sto.modules.ims.model.ImsCancleInvoice;
import com.yonyou.sto.modules.ims.model.ImsInvoice;
import org.springframework.transaction.annotation.Transactional;

import java.security.Principal;
import java.util.List;
import java.util.Map;

/**
*
*/
public interface ImsCancleInvoiceService extends IService<ImsCancleInvoice> {

    @Transactional
    boolean add(List<ImsInvoice> imsInvoices, Principal principal);

    CommonResult<Map<String, Object>> list(String username, Integer pageSize, Integer pageNum, String billSerial, String billSn, String billNo, String billCode, String sellerName, String buyerName, List<Integer> statusList, String startTime, String endTime, String djlx,String billType,String createName);

    /**
     * 查询单据明细和退回记录
     * @param id
     * @return
     */
    CommonResult invoiceInfo(String id);

}
